﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using SqlSugar;

// ReSharper disable All
namespace ConsoleApp.industry
{
    [SugarTable("oa_crm_industry")]
    public class IndustryModel
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public string id { get; set; }
        [JsonIgnore]
        public string create_by { get; set; } = "18012345678";
        [JsonIgnore]
        public DateTime create_time { get; set; } = DateTime.Now;
        [JsonIgnore]
        public string modify_by { get; set; } = "18012345678";
        [JsonIgnore]
        public DateTime modify_time { get; set; } = DateTime.Now;
        public int level { get; set; }
        public string name { get; set; }
        [JsonIgnore]
        public string remark { get; set; } = string.Empty;
        public int sort { get; set; }
        public string parent_id { get; set; }
        public int status { get; set; } = 1;
        [JsonIgnore]
        public string node_list { get; set; }
    }

    public class JsonModel
    {
        public string label { get; set; }
        public string value { get; set; }
        public List<JsonModel> children { get; set; }
    }
}
